<html ng-app='test'>
<head>
<script type="text/javascript" src="./angular/angular.js"></script>


</head>
<body>

	<form ng-controller='CheckCtrl'>
		<input type="checkbox" ng-model='chk' ng-click='check(chk)' />
	</form>

	<script type="text/javascript">
		var test = angular.module('test', []);
		test.controller('CheckCtrl', function($scope) {
			//设置checkbox默认不选中
			$scope.chk = true;

			$scope.check = function(val) {
				!val ? alert('checked') : alert('not checked');
			}
		})
	</script>

</body>
</html>